﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //mwc_test1.Text = ConfigurationSettings.AppSettings["mwc_con"];
        loadModules();
    }
    protected void loadModules()
    {
        phd_menu.Controls.Clear();
        UserControl uc = (UserControl)LoadControl("./modules/menu.ascx");
        phd_menu.Controls.Add(uc);

        phd_banner.Controls.Clear();
        UserControl uc_banner = (UserControl)LoadControl("./modules/banner.ascx");
        phd_banner.Controls.Add(uc_banner);

        phd_search.Controls.Clear();
        UserControl uc_search = (UserControl)LoadControl("./modules/search.ascx");
        phd_search.Controls.Add(uc_search);

        /*phd_flash_logo.Controls.Clear();
        UserControl uc_flash_logo = (UserControl)LoadControl("./modules/flash_logo.ascx");
        phd_search.Controls.Add(uc_flash_logo);*/

        phd_foreside_content.Controls.Clear();
        UserControl uc_foreside_content = (UserControl)LoadControl("./modules/foreside_content.ascx");
        phd_foreside_content.Controls.Add(uc_foreside_content);
    }
}
